﻿<cfscript>
/** 
* DataBase Frameworks - Sequence
* 
* @hint "DataBase Frameworks - Sequence - SchemaCourseReplace" 
*/ 

component 
	displayname="public.service.db.senate.sequence.SchemaCourseReplace" 
	output=false 
	accessors=true 
	{

	property type="string" name="SubjectID" hint="专业号";
	property type="string" name="Grade" hint="年级";
	property type="string" name="courseSource" hint="课程";
	property type="string" name="courseTarget" hint="替换课程";
	
	/**
	* @hint "初始化对象"
	*/
	public function init() output=false {
		return this;
	}
	
	/**
	* @hint "自定义主键规则"
	* 
	*/	
	public string function getID() output=false {
		
		var nextID = getSubjectID() & "," & getGrade() & "," & getcourseSource() & "," & getcourseTarget();

		/* 
			主键生成规则 
		*/
		return nextID;
	}

}

</cfscript>